#include "widget.h"
#include "ui_widget.h"
#include <QTime>
#include <QDebug>
#include <QHBoxLayout>
#include <QPushButton>


Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
    , drawer_(nullptr)
{
    ui->setupUi(this);
    drawer_ = new drawWidget(this);

    QHBoxLayout *hLayout = new QHBoxLayout(this);
    QVBoxLayout *vLayout = new QVBoxLayout();
    hLayout->addWidget(drawer_, 1);
    hLayout->addLayout(vLayout);

    QPushButton* p1 = new QPushButton("p1");

    vLayout->addWidget(p1, 0, Qt::AlignTop);
}

Widget::~Widget()
{
    delete ui;
}
